package api

import (
	"github.com/lishimeng/app-starter/server"
)

func Router(app server.Router) {

	admin(app.Path("/admin"))

	app.Post("/upload", upload)
	app.Post("/uploads", uploadMultiple)
}

func admin(p server.Router) {
	p.Post("/auto_clear", autoClear)
}
